@import "./variables.scss";
@import "./mixin.scss";
@import "./transition.scss";
@import "./element-ui.scss";
@import "./sidebar.scss";
@import "./btn.scss";

body {
  font-size: 14px;
  height: 100%;
  font-size: 14px;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
}

// label {
//   font-weight: 700;
// }

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
  background: #f5f5f5;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}
.el-form--inline .el-form-item {
  margin-right: 25px;
}
//main-container全局样式
.app-container {
  padding: 20px;
}
.certificate {
  .el-upload > .el-upload-dragger {
    width: 180px !important;
  }
}
.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(
    90deg,
    rgba(32, 182, 249, 1) 0%,
    rgba(32, 182, 249, 1) 0%,
    rgba(33, 120, 241, 1) 100%,
    rgba(33, 120, 241, 1) 100%
  );

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "PingFang SC";
}

/* #ifdef APP-PLUS */
/*/ 引入本地字体 */
// @font-face {
//   font-family: 'PingFang SC';
//   src: url('~@/static/PingFang SC Medium.ttf');
// }
/* #endif */

:root {
  --c-active: #0090ff;
  --c-warning: #e6a23c;
  --c-danger: #f78989;
}

/* flex */
.flex {
  display: flex;
  flex-direction: row;
}

.flex-1 {
  flex: 1;
}

.flex-jc-fe {
  justify-content: flex-end;
}
.flex-jc-c {
  justify-content: center;
}
.flex-jc-sa {
  justify-content: space-around;
}
.flex-jc-sb {
  justify-content: space-between;
}

.flex-ai-c {
  align-items: center;
}
.flex-ai-fs {
  align-items: flex-start;
}
.flex-ai-fe {
  align-items: flex-end;
}
.flex-ai-bl {
  align-items: baseline;
}

.flex-ac-fs {
  align-content: flex-start;
}
.flex-ac-c {
  align-content: center;
}
.flex-ac-fe {
  align-content: flex-end;
}
.flex-ac-sa {
  align-content: space-around;
}
.flex-ac-sb {
  align-content: space-between;
}

.flex-dir-c {
  flex-direction: column;
}
.flex-dir-cr {
  flex-direction: column-reverse;
}
.flex-wrap-w {
  flex-wrap: wrap;
}
.flex-wrap-wr {
  flex-wrap: wrap-reverse;
}
.mt-10 {
  margin-top: 10px;
}
.mt-5 {
  margin-top: 5px;
}
.mt-20 {
  margin-top: 20px;
}

.ml-10 {
  margin-left: 10px;
}
.ml-5 {
  margin-left: 5px;
}
.ml-20 {
  margin-left: 20px;
}

.mr-40 {
  margin-right: 40px;
}
.mr-5 {
  margin-right: 5px;
}
.mr-10 {
  margin-right: 10px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}
.mb-80 {
  margin-bottom: 80px;
}

.pl-10 {
  padding-left: 10px;
}
.pl-5 {
  padding-left: 5px;
}
.pl-15 {
  padding-left: 15px;
}
.width-100 {
  width: 100%;
}
.width-95 {
  width: 95%;
}
.width-90 {
  width: 90%;
}
.width-85 {
  width: 85%;
}
.width-80 {
  width: 80%;
}
.width-75 {
  width: 75%;
}
.width-70 {
  width: 70%;
}
.width-65 {
  width: 65%;
}
.width-60 {
  width: 60%;
}
.width-50 {
  width: 50%;
}
.width-40 {
  width: 40%;
}
.width-35 {
  width: 35%;
}
.width-30 {
  width: 30%;
}
.width-25 {
  width: 25%;
}
.width-10 {
  width: 20%;
}
.width-15 {
  width: 15%;
}
.width-5 {
  width: 10%;
}

.font-12 {
  font-size: 12px;
}
.font-14 {
  font-size: 14px;
}

.font-16 {
  font-size: 16px;
}

.font-18 {
  font-size: 18px;
}
.font-20 {
  font-size: 20px;
}
.font-22 {
  font-size: 22px;
}
.font-24 {
  font-size: 24px;
}
.font-26 {
  font-size: 26px;
}
.font-bold {
  font-weight: bold;
}
.color-EB5B01 {
  color: #eb5b01 !important;
}
.color-FBB000 {
  color: #fbb000;
}
.color-EB5C02 {
  color: #eb5c02;
}
.color-3DB707 {
  color: #3db707;
}
.color-000 {
  color: #000;
}
.color-333 {
  color: #333;
}
.color-666 {
  color: #666;
}
.color-999 {
  color: #999;
}
.color-fff {
  color: #fff;
}
.color-red {
  color: red;
}
.color-blue {
  color: rgb(0, 153, 255);
}
.block-inline {
  display: inline-block;
}
.border-bottom-1 {
  border-bottom: 1px solid #f5f5f5;
}
.pad-t-b-5 {
  padding: 5px 0px;
}
.pad-t-b-10 {
  padding: 10px 0px;
}
.pad-t-b-15 {
  padding: 15px 0px;
}
.pad-l-r-10 {
  padding: 0px 10px;
}
.pad-a-10 {
  padding: 10px;
}
.pad-a-20 {
  padding: 20px;
}
.pad-nt-20 {
  padding: 0 20px 20px;
}
.pad-b-25 {
  padding-bottom: 25px;
}
.middle {
  vertical-align: middle;
}
.line36 {
  line-height: 36px;
}
.hover-bg-color {
  opacity: 0.6;
  transition: 0.2s all;
}
.text-center {
  text-align: center;
}

// 文本单行一出省略
.s-line-text {
  /* 单行...*/
  overflow: hidden; /*超出部分隐藏*/
  white-space: nowrap; /*禁止换行*/
  text-overflow: ellipsis; /*省略号*/
}

@mixin mLineText() {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
  white-space: normal !important;
  -webkit-box-orient: vertical;
}

// 文本多行一出省略
.m-line-text-2 {
  @include mLineText();
  -webkit-line-clamp: 2;
}
.m-line-text-3 {
  @include mLineText();
  -webkit-line-clamp: 3;
}
.m-line-text-4 {
  @include mLineText();
  -webkit-line-clamp: 4;
}
.m-line-text-2 {
  @include mLineText();
  -webkit-line-clamp: 5;
}
//默认按钮
.el-button--primary {
  color: #333;
}

.el-button--primary:hover {
  color: #333;
  background: #ffe23e;
  border-color: #ffe23e;
}

.el-button--primary:active {
  color: #333;
  background: #fbb000;
  border-color: #fbb000;
}

.el-button--primary:focus {
  color: #333;
  background: #fbd220;
  border-color: #fbd220;
}

// 上筛选下表格布局
.labelBox {
  background: #fff;
  margin: 10px 15px;
  border-radius: 4px;
  // box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
}
